package com.hhd.flow.engine.support;

import com.hhd.flow.engine.cmd.PassTaskContext;
import com.hhd.flow.engine.vo.FlowUser;
import com.hhd.flow.engine.vo.UserTask;
import com.hhd.flow.entity.FlowAttachment;

import java.util.List;

public interface FlowEngineSupport {
    List<FlowUser> loadFlowUser(String formTypeId, String formId, UserTask userTask, PassTaskContext context);

    //获取当前登录人
    FlowUser getCurrentUser();

    FlowAttachment upload(FlowResource resource, AttachMentType attachMentType);

    FlowResource loadResource(FlowAttachment attachment);

    FlowUser getFlowUserById(String userId);

    default String getCurrentUserSign() {
        return null;
    }

    default FlowResource loadUserSign(String userSign) {
        return null;
    }
}
